"""
@author: xxw
@file: 在二维数组中找到最大值与最小值.py
@time: 2023/5/5 10:56
"""
arr = [
    [1,2,3],
    [4,5,6],
    [7,8,9],
    ]
max = arr[0][0]
min = arr[0][0]
for i in arr:
    for j in i:
        if j > max:
            max = j
        if j < min:
            min = j
print(f"最大值为:{max}")
print(f"最小值为:{min}")